export const validationRule = {
  Email:
    /^[a-z0-9]+([._\\-]*[a-z0-9])*@([a-z0-9]+[-a-z0-9]*[a-z0-9]+.){1,63}[a-z0-9]+$/,
  Empty: /^\s*$/,
  Space: /\s+/,
  Number: /^[0-9]+$/,
  Ip: /^(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])((\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])){3}|(\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])){5})$/,
  Fax: /^(([0+]\d{2,3}-)?(0\d{2,3})-)(\d{7,8})(-(\d{3,}))?$/,
  Phone: /^1[3|4|5|6|7|8|9]\d{9}/,
  Url: /^(?:http(s)?:\/\/)?[\w.-]+(?:\.[\w.-]+)+[\w\-._~:/?#[\]@!$&'*+,;=.]+$/,
  Money: /^(0|[1-9]\d*)(\.\d+)?$/,
  Chinese: /^[\u0391-\uFFE5]+$/,
  English: /^[A-Za-z]+$/,
  Percent: /^-?(100|(([1-9]\d|\d)(\.\d{1,2})?))%$/,
  IDcard: /(^\d{15}$)|(^\d{18}$)|(^\d{17}(\d|X|x)$)/,
  VehicleNumber: {
    8: /^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}(([0-9]{5}[DF]$)|([DF][A-HJ-NP-Z0-9][0-9]{4}$))/,
    7: /^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}[A-HJ-NP-Z0-9]{4}[A-HJ-NP-Z0-9挂学警港澳]{1}$/
  },
  Int: /^-?\d+$/,
  Float: /^(-?\d+)(\.\d+)?$/
};
